import  React  from 'react'






import  Fn from './Fn'




//无状态组件 只负责展示
function  myFn2() {
    return(
        <div>
            myFn2组件
        </div>
    )
}



function  myFn3() {
    return(
         {
             color:'red'
         }
    )
}



// 有状态组件 负责js逻辑处理
export  default  class  Child3 extends  React.Component {
    render() {
        return(


            <div>

                <h3>  child3</h3>
                <div> {this.props.children?this.props.children:'没有'}</div>

                <Fn></Fn>

                <myFn2></myFn2>


            </div>
        )
    }
}